//定义一个元组数据类型
var sa = ["亢园园", 21];
var hhh;
hhh = ["hei", 20];
//定义一个数组数据类型
var arr = [];
arr[0] = 12;
//Boolean数据类型
var isTrue = false;
var isTrue1;
//string数据类型
var isString = false;
var isString1;
//number数据类型
var isNumber = false;
var isNumber1;
//枚举数据类型
var isEnum = false;
var isEnum1;
var Color;
(function (Color) {
    Color[Color["Red"] = 0] = "Red";
    Color[Color["Green"] = 1] = "Green";
    Color[Color["Blue"] = 2] = "Blue";
})(Color || (Color = {}));
console.log(Color, "Color");
//作业二
var aa1 = "sss";
var bb1 = 44;
var sz1 = [1, 5, 9];
var sz11;
sz11 = [32, 1, 2];
var sz2 = [84, 43, 21];
var yz = ["as", 88];
//push 末尾添加 pop 删除最后一个 unshift 开头添加  shift 开头删除 splice 删除添加修改 sort 排序 slice 截取 indexof 找出第一个符合的元素的下标
//作业三
var fun = function (arr) {
    arr.length = arr.length - 1;
    return arr;
};
console.log(fun([1, null, NaN, 2, undefined]));
var push = function (a) {
    var arr1 = arguments[0];
    for (var i = 1; i < arguments.length; i++) {
        arr1[arr1.length] = arguments[i];
    }
    console.log(arr1);
    return arr1.length;
};
console.log(push([[1, 2, 3], "hello", "world"]));
